package com.laizt.client.openexe;

import com.laizt.client.ftp.FtpMakerUtil;
import com.laizt.client.macaddr.MacIpServer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class OpenExeStart {
    @Bean
    public OpenExeServer getOpenExeServer() {
        return new OpenExeServer();
    }

    @Bean
    public void getFtpServer() {
        new Thread(new Runnable() {
            @Override
            public void run() {
                FtpMakerUtil.makeFtpServer();
            }
        }).start();
    }

    @Bean
    public MacIpServer getMacIp() {
        return new MacIpServer();
    }

}
